import java.util.ArrayList;
import java.util.List;

/**
 * @USER: Administrator
 * @DATE: 2024/9/21 上午11:51
 * @VERSION: 1.0.0
 */
public class LC1018 {
    public static void main(String[] args) {

    }

    public List<Boolean> prefixesDivBy5(int[] nums) {
        List<Boolean> res = new ArrayList<Boolean>();
        long num= 0L;
        for (int j : nums) {
            num = num * 2 + j;
            if (num % 5 == 0){
                res.add(true);
                num = 0;
            }else {
                res.add(false);
                num = num % 5;
            }

        }
        return res;
    }

}
